import React from 'react'
import { Route, Switch, Redirect } from 'react-router-dom'

import Common from '../views/common/index'
import Ticket from '../views/ticket/index'

export const RouterView = (props: any) => {
  return <Switch>
    <Route path="/common" component={Common}></Route>
    <Route path="/ticket" component={Ticket}></Route>
    <Redirect to="/common" from="/" />
  </Switch>
}